package com.test1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Admin on 9/16 0016.
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext cox=new ClassPathXmlApplicationContext("person.xml");
        Person person= (Person) cox.getBean("person");
        System.out.println(person);
    }
}
